function util(obj) {

    /**
     * 工具
     */
    var chartU = echarts.init(document.getElementById('gongju'))
    var log = "";
    var content = "";
    for(var i=0;i<obj.length;i++){
        if(obj.length == 1){
            log = log+"[\'"+obj[i].TYPE+"\']";
        }else if(obj.length != 1 && i == 0){
            log = log+"[\'"+obj[i].TYPE+"\',"
        }else if(obj.length != 1 && i != obj.length-1){
            log = log + "\'" + obj[i].TYPE + "\',";
        }else if(obj.length != 1 && i == obj.length-1){
            log = log + "\'" + obj[i].TYPE + "\']";
        }
    }

    var max =  0;
    for(var i=0;i<obj.length;i++){
        if (obj[i] > max)
            max = obj[i]
        if(obj.length == 1){
            content = content+"[{value :"+obj[i].COUNT+",name:\'"+obj[i].TYPE+"\'}]";
        }else if(obj.length != 1 && i == 0){
            content = content+"[{value :"+obj[i].COUNT+",name:\'"+obj[i].TYPE+"\'},"
        }else if(obj.length != 1 && i != obj.length-1){
            content = content + "{value :"+obj[i].COUNT+",name:\'"+obj[i].TYPE+"\'},";
        }else if(obj.length != 1 && i == obj.length-1){
            content = content + "{value :"+obj[i].COUNT+",name:\'"+obj[i].TYPE+"\'}]";
        }
    }
    if()
    var log1 = eval('(' + log + ')');
    var content1 = eval('(' + content + ')')
    var yMax = max;
    var dataShadow = [];

    for(var i = 0; i < obj.length; i++) {
        dataShadow.push(yMax);
    }
    option = {
        title: {
            text: '工具'
        },
        tooltip: {
            trigger: 'axis'
        },
//				grid: {
//					left: '3%',
//					right: '4%',
//					bottom: '3%',
//					containLabel: true
//				},
        toolbox: {
            feature: {
                saveAsImage: {}
            }
        },
        xAxis: {
            type: 'category',
            boundaryGap: false,
            data: log1
        },
        yAxis: {
            type: 'value'
        },
        series: [{
            data: content1,
            type: 'line',
            areaStyle: {}
        }]
    };

    chartU.setOption(option);

}